<!DOCTYPE html>
<html lang="cn">
<head>
<title>漂亮的响应式Bootstrap后台管理系统模板MatAdmin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="__ROOT__/PUBLIC/css/bootstrap.min.css" />
<!-- <link rel="stylesheet" href="__ROOT__/PUBLIC/css/bootstrap-responsive.min.css" /> -->
<link rel="stylesheet" href="__ROOT__/PUBLIC/css/fullcalendar.css" />
<link rel="stylesheet" href="__ROOT__/PUBLIC/css/matrix-style.css" />
<link rel="stylesheet" href="__ROOT__/PUBLIC/css/matrix-media.css" />
<link href="__ROOT__/PUBLIC/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="__ROOT__/PUBLIC/css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
<script src="__ROOT__/PUBLIC/js/jquery-1.8.0.min.js"></script> 

</head>
<body>
            
<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">MatAdmin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span  class="text">{$user}</span><b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="#"><i class="icon-user"></i> 我的资料</a></li>
        <li class="divider"></li>
        <li><a href="#"><i class="icon-check"></i> 我的任务</a></li>
        <li class="divider"></li>
        <li><a href="{:U('Login/logout')}"><i class="icon-key"></i> 退出</a></li>
      </ul>
    </li>
    <li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">消息</span> <span class="label label-important">5</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> 新消息</a></li>
        <li class="divider"></li>
        <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> 收件箱</a></li>
        <li class="divider"></li>
        <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> 发件箱</a></li>
        <li class="divider"></li>
        <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> 发送</a></li>
      </ul>
    </li>
    <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
    <li class=""><a title="" href="{:U('Login/logout')}"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
  </ul>
</div>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<div id="search">
  <input type="text" placeholder="输入搜索内容..."/>
  <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
<!--close-top-serch-->
<!--sidebar-menu-->
<div id="sidebar"><a href="#" class="visible-phone"><i class="icon-home"></i> 控制台</a>
  <ul>
    <!-- <li class="active"><a href="{:U('Index/index')}"><i class="icon-home"></i> <span>首页</span></a> </li>
    <li> <a href="{:U('Log/index')}"><i class="icon-signal"></i> <span>库存单品编码</span></a> </li>
    <li> <a href="{:U('Lsdl/index')}"><i class="icon-signal"></i> <span>客户门店添加</span></a> </li>
    <li> <a href="{:U('Ls/index')}"><i class="icon-signal"></i> <span>门店报单编辑</span></a> </li>
    <li> <a href="{:U('Lsrb/index')}"><i class="icon-signal"></i> <span>已报订单确认</span></a> </li>
    <li> <a href="{:U('Nslsrb/index')}"><i class="icon-signal"></i> <span>日报新增删除</span></a> </li>
    <li > <a href="{:U('Sc/index')}"><i class="icon-signal"></i> <span>商超批量派车</span></a> </li>
    <li> <a href="{:U('Scdl/index')}"><i class="icon-signal"></i> <span>商超独立派车</span></a> </li>
    <li> <a href="{:U('Wpcmd/index')}"><i class="icon-signal"></i> <span>未派订单处理</span></a> </li> -->
  </ul>
</div>
<!--sidebar-menu-->

<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
  <div id="content-header">
    <div id="breadcrumb"> <a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> 首页</a></div>
  </div>
<!--End-breadcrumbs-->

<!--Action boxes-->
 <!--  <div class="container-fluid">
    <div class="quick-actions_homepage">
      <ul class="quick-actions">
        <li class="bg_lb"> <a href="index"> <i class="icon-dashboard"></i> <span class="label label-important"></span>入库</a> </li> 
        <li class="bg_lb"> <a href="index.html"> <i class="icon-dashboard"></i> <span class="label label-important"></span>出库</a> </li>   
        <li class="bg_lb"> <a href="index.html"> <i class="icon-dashboard"></i> <span class="label label-important"></span>退货</a> </li>  
        <li class="bg_lb"> <a href="{:U('Login/index')}"> <i class="icon-dashboard"></i> <span class="label label-important"></span>入库核核算</a> </li> 
        <li class="bg_lb"> <a href="index.html"> <i class="icon-dashboard"></i> <span class="label label-important"></span>出库111核算</a> </li>   
        <li class="bg_lb"> <a href="index.html"> <i class="icon-dashboard"></i> <span class="label label-important"></span>退货核算</a> </li>  
     
      </ul>
    </div>
   </div> -->
  
   

<!--End-Action boxes-->
		<div class="row-fluid">
			<div class="widget-box">
				<div class="widget-title bg_lg">
					<span class="icon"><i class="icon-signal"></i></span>
					<h5>欢迎主页</h5>
				</div>
				<div class="widget-content">
					<div class="row-fluid" style="overflow:scroll;">

				


					</div>
				</div>
			</div>
		</div>




		<!--end-main-container-part-->

<!--Footer-part-->

<div class="row-fluid">
  <div id="footer" class="span12">Copyright &copy; 2018.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a> </div>
</div>


<script src="__ROOT__/PUBLIC/js/excanvas.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.ui.custom.js"></script> 
<script src="__ROOT__/PUBLIC/js/bootstrap.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.flot.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.flot.resize.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.peity.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/fullcalendar.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.dashboard.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.gritter.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.interface.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.chat.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.validate.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.form_validation.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.wizard.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.uniform.js"></script> 
<script src="__ROOT__/PUBLIC/js/select2.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.popover.js"></script> 
<script src="__ROOT__/PUBLIC/js/jquery.dataTables.min.js"></script> 
<script src="__ROOT__/PUBLIC/js/matrix.tables.js"></script> 

<!--end-Footer-part-->


<script type="text/javascript">
// 使用assign 到js中必须使用"{$arr1}" 这样的格式。
/* //var userid={$user};
if("{$user}"!=1)
	{
	alert("asdfadf");
	} */

//ajax 测试 userid
$.post("__CONTROLLER__/ceshi/",
		    {
		    
		    },
		    function(data,status){	
		    	
		    	switch (data) 
		    	{		    	
		        case "1":
		    	{
		        	
		        	$('#sidebar').children("ul").append("<li class='active'> <a href='{:U('Index/index')}'><i class='icon-home'></i> <span>首页</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Log/index')}'><i class='icon-signal'></i> <span>库存单品编码</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Lsdl/index')}'><i class='icon-signal'></i> <span>客户门店添加</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Ls/index')}'><i class='icon-signal'></i> <span>门店报单编辑</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Lsrb/index')}'><i class='icon-signal'></i> <span>已报订单确认</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Dddy/index')}'><i class='icon-signal'></i> <span>订单打印处理</span></a> </li>"); 
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Rkcl/index')}'><i class='icon-signal'></i> <span>单品入库处理</span></a> </li>");  	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Ddgz/index')}'><i class='icon-signal'></i> <span>订单出库处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Kcgl/index')}'><i class='icon-signal'></i> <span>库存数据查看</span></a> </li>");
		        	break;
		    	}
		    	
		        case "2":
		    	{
		        	$('#sidebar').children("ul").append("<li class='active'><a href='{:U('Index/index')}'><i class='icon-home'></i> <span>首页</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Log/index')}'><i class='icon-signal'></i> <span>库存单品编码</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Lsdl/index')}'><i class='icon-signal'></i> <span>客户门店添加</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Ls/index')}'><i class='icon-signal'></i> <span>门店报单编辑</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Lsrb/index')}'><i class='icon-signal'></i> <span>已报订单确认</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Kcgl/index')}'><i class='icon-signal'></i> <span>库存数据查看</span></a> </li>");
		        break;
		    	}
		    	
		        case "3":
		    	{ 
		        	$('#sidebar').children("ul").append("<li class='active'> <a href='{:U('Index/index')}'><i class='icon-home'></i> <span>首页</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Log/index')}'><i class='icon-signal'></i> <span>库存单品编码</span></a> </li>");	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Dddy/index')}'><i class='icon-signal'></i> <span>订单打印处理</span></a> </li>"); 
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Rkcl/index')}'><i class='icon-signal'></i> <span>单品入库处理</span></a> </li>");  	
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Ddgz/index')}'><i class='icon-signal'></i> <span>订单出库处理</span></a> </li>");
		        	$('#sidebar').children("ul").append("<li> <a href='{:U('Kcgl/index')}'><i class='icon-signal'></i> <span>库存数据查看</span></a> </li>");
		        	   	
		        break;
		    	}
		    	
		        case "4":
		        {    	    	
		        	
		        break;
		        } 
		        
		        default: 
		        {
		    	break;
		        }
		        
		    	} 
		    	//$("#sidebar").find("li")[0].remove();    
		    });
  // This function is called from the pop-up menus to transfer to
  // a different page. Ignore if the value returned is a null string:
  function goPage (newURL) {

      // if url is empty, skip the menu dividers and reset the menu selection to default
      if (newURL != "") {
      
          // if url is "-", it is this page -- reset the menu:
          if (newURL == "-" ) {
              resetMenu();            
          } 
          // else, send page to designated URL            
          else {  
            document.location.href = newURL;
          }
      }
  }

// resets the menu selection upon entry to this page:
function resetMenu() {
   document.gomenu.selector.selectedIndex = 2;
}

</script>


<style type="text/css">
#div1, #div2
{float:left; width:198px; height:66px; margin:10px;padding:10px;border:1px solid #aaaaaa;}
</style>
<script type="text/javascript">
  // This function is called from the pop-up menus to transfer to
  // a different page. Ignore if the value returned is a null string:
  function goPage (newURL) {

      // if url is empty, skip the menu dividers and reset the menu selection to default
      if (newURL != "") {
      
          // if url is "-", it is this page -- reset the menu:
          if (newURL == "-" ) {
              resetMenu();            
          } 
          // else, send page to designated URL            
          else {  
            document.location.href = newURL;
          }
      }
  }

// resets the menu selection upon entry to this page:
function resetMenu() {
   document.gomenu.selector.selectedIndex = 2;
}
</script>

</body>
</html>
